use std::fmt::{Debug};
use std::sync::Arc;
use rpc::RpcChannel;

// type SharedMap = Arc<Mutex<HashMap<&'static str, Box<dyn Any + Send>>>>;
pub struct RpcConfig {
    channel: Arc<Box<dyn RpcChannel>>,
}

impl RpcConfig {

    pub fn channel(&self) -> Arc<Box<dyn RpcChannel>> {
        self.channel.clone()
    }
}

